/* API密钥配置界面专用样式 */

/* 密钥输入框和眼睛图标样式 */
.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-toggle input {
    flex: 1;
    padding-right: 45px;
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    color: #666;
    transition: color 0.2s;
    z-index: 1;
}

.toggle-visibility:hover {
    color: #333;
}

.eye-icon {
    display: inline-block;
    user-select: none;
}

/* 单个配置保存按钮样式 */
.config-actions-single {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-save-single {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-save-single:hover {
    background: #218838;
}

.btn-save-single:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* 配置状态样式 */
.section-status.status-success {
    color: #28a745;
    font-weight: bold;
}

.section-status.status-warning {
    color: #ffc107;
    font-weight: bold;
}

.section-status.status-error {
    color: #dc3545;
    font-weight: bold;
}

/* 密钥值显示样式 */
.key-value-display {
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-top: 5px;
    word-break: break-all;
}

.key-value-masked {
    color: #6c757d;
}

.key-value-visible {
    color: #495057;
}